//连接数据库
var mysql = require('mysql');
var connection = mysql.createConnection({
    host: 'bdm253137448.my3w.com', //数据库地址
    user: 'bdm253137448',   //数据库用户名
    password: 'muchengfeng123', //数据库管理密码
    database:'bdm253137448_db', //数据库名称
    insecureAuth: true
});

connection.connect();
//查询

/*
* 修改表名
* */
var sqlLan = 'alter table child1 rename child';
connection.query(sqlLan, function(err, rows, fields) {
    if (err) throw err;
    console.log('The solution is: ', rows);
});
//关闭连接
connection.end                                                                                                                                                                     ();